<template>
  <div id="search-input">
    <input type="text" autofocus maxlength="10" v-model="inputText">
    <div class="btn" @click="inputTextBtn">
        <i class="el-icon-search"></i>
    </div>
  </div>
</template>

<script>
export default {

    data(){
        return{
            inputText:""
        }
    },
    methods: {
    inputTextBtn() {
    },
  },

}
</script>

<style>
#search-input{
    height: 30px;
    border-radius: 15px;
    border: 1px solid #409EFF;
    display: flex;
    display: -webkit-flex;
    justify-content: center;
    align-items: center;
}

#search-input input{
    padding: 0 10px;
    color: gray;
    font-size: 12px;
}

#search-input .btn{
    cursor: pointer;
    height: 30px;
    width: 50px;
    border-radius: 15px;
    background-color: #409EFFbb;
    display: flex;
    display: -webkit-flex;
    justify-content: center;
    align-items: center;
    color: white;
}

#search-input .btn:hover{
    background-color: #409EFFff;
}
</style>